package com.xbs.controller.enterprise;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.xbs.controller.base.BaseServlet;
import com.xbs.entity.EnterpriseOrderEntity;
import com.xbs.service.enterprise.EnterpriseSelfOrderService;

@WebServlet("/enterprise/ordermanager/self")
public class SelfOrderManager extends BaseServlet{
	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		EnterpriseSelfOrderService service=new EnterpriseSelfOrderService();
		List<EnterpriseOrderEntity> orders=service.getSelfOrderByAccount("fykj");
		req.setAttribute("orders", orders);
		forward("businessview/ls_enterprise/myCenter/myCenter_duan");
	
	}
	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		doPost(req, resp);
	}
}
